<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>${context.settings}-${context.title}</title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<script type="text/javascript" src="/group/autosuggest/js/note.js"></script>
</head>
<script language="javascript">

</script>
<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0">

<c:import url="/group/ui-component/divdialog/divdialog.html" />

<table width="100%" border="0" cellpadding="0" cellspacing="0"
	align=center>
	<%-- //////////////////////banner --%>
	<tr>
		<td><c:import url="/banner.jsp?currentPlatform=0" /></td>
	</tr>

	<tr>
		<td width=100%>
		<table style="margin-top: 10px;">
			<tr>
				<c:if test="${isAdmin }">

					<td width=120 nowrap valign=top><c:import
						url="/group/adminMenu.jsp?currentPlatform=0&settings=1" /></td>

				</c:if>
				<td valign=top>

				<FORM method=post enctype="multipart/form-data"
					action="/group/settings<c:out value='${context.postfix}' />?cmd=setLogo">
				<table cellpadding="5" cellspacing="1" width="600" align=center
					style="border: 1px solid #d4d4d2">



					<tr>
						<td colspan=2 align="center" nowrap><font size="2"
							face="verdana"><b><c:out value='Logo' /></b></font></td>
					</tr>

					<tr bgcolor="#ffffff">
						<td>.jpg - ?x70</TD>
						<TD><input name="pic" type=file size="20" maxlength="100">
						</TD>
					</TR>

					<tr bgcolor="#ffffff">

						<TD colspan=2><c:if test="${lang eq 'en' }">
							<img src="/group/images/logo_en.jpg" height=70>
						</c:if><c:if test="${lang eq 'local' }">
							<img src="/group/images/logo_local.jpg" height=70>
						</c:if></TD>
					</TR>


					<tr style="height: 30;">
						<td align="center" colspan=2><input type="submit"
							value="<c:out value='${context.button_ok}' />"
							style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px #333333">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>

				</table>

				</FORM>




				<FORM method=post enctype="multipart/form-data"
					action="/group/settings<c:out value='${context.postfix}' />?cmd=setBanner">
				<table cellpadding="5" cellspacing="1" width="600" align=center
					style="border: 1px solid #d4d4d2">



					<tr>
						<td colspan=2 align="center" nowrap><font size="2"
							face="verdana"><b><c:out
							value='${context.head_banner }' /></b></font></td>
					</tr>

					<tr bgcolor="#ffffff">
						<td>.jpg - 500x70</TD>
						<TD><input name="pic" type=file size="20" maxlength="100">
						</TD>
					</TR>

					<tr bgcolor="#ffffff">

						<TD colspan=2><img src="/group/images/banner1.jpg" width=500>
						</TD>
					</TR>


					<tr style="height: 30;">
						<td align="center" colspan=2><input type="submit"
							value="<c:out value='${context.button_ok}' />"
							style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px #333333">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>

				</table>

				</FORM>



				<FORM method=post
					action="/group/settings<c:out value='${context.postfix}' />?cmd=setProperties">
				<table cellpadding="5" cellspacing="1" width="600" align=center
					style="border: 1px solid #d4d4d2">



					<tr>
						<td colspan=2 align="center" nowrap><font size="2"
							face="verdana"><b><c:out value='${context.properties}' /></b></font></td>
					</tr>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.server_time}' /></TD>
						<TD align=left><select name=hours_difference>

							<c:set var="rank" value="-1" />
							<c:forEach begin="1" end="13" step="1">
								<c:set var="rank" value="${rank+1 }" />
								<c:set var="timeZoneValue" value="${rank }" />
								<option value="${timeZoneValue}"
									<c:if test="${timeZoneValue==context.hours_difference}" >selected</c:if>>+<c:out
									value='${timeZoneValue }' /></option>
							</c:forEach>
							<c:set var="rank" value="0" />
							<c:forEach begin="1" end="12" step="1">
								<c:set var="rank" value="${rank+1 }" />
								<c:set var="timeZoneValue" value="${-rank }" />
								<option value="${timeZoneValue}"
									<c:if test="${timeZoneValue==context.hours_difference}" >selected</c:if>><c:out
									value='${timeZoneValue }' /></option>
							</c:forEach>
						</select></TD>
					</TR>


				 




					<tr style="height: 30;">
						<td align="center" colspan=2><input type="submit"
							value="<c:out value='${context.button_ok}' />"
							style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px #333333">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>

				</table>

				</FORM>



				<FORM method=post
					action="/group/settings<c:out value='${context.postfix}' />?cmd=setConfig">
				<table cellpadding="5" cellspacing="1" width="600" align=center
					style="border: 1px solid #d4d4d2">



					<tr>
						<td colspan=2 align="center" nowrap><font size="2"
							face="verdana"><b><c:out
							value='${context.sectors_enabled}' /></b></font></td>
					</tr>




					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.platform1}' /></TD>
						<TD align=left>Yes<input type=radio name="p1" value='true'
							<c:if test="${context.p1}" > checked</c:if>> &nbsp; No<input
							type=radio name="p1" value='false'
							<c:if test="${!context.p1}" > checked</c:if>></TD>
					</TR>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.nav1}' /></TD>
						<TD align=left>Yes<input type=radio name="p11" value='true'
							<c:if test="${context.p11}" > checked</c:if>> &nbsp; No<input
							type=radio name="p11" value='false'
							<c:if test="${!context.p11}" > checked</c:if>></TD>
					</TR>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.platform2}' /></TD>
						<TD align=left>Yes<input type=radio name="p2" value='true'
							<c:if test="${context.p2}" > checked</c:if>> &nbsp; No<input
							type=radio name="p2" value='false'
							<c:if test="${!context.p2}" > checked</c:if>></TD>
					</TR>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.nav2}' /></TD>
						<TD align=left>Yes<input type=radio name="p22" value='true'
							<c:if test="${context.p22}" > checked</c:if>> &nbsp; No<input
							type=radio name="p22" value='false'
							<c:if test="${!context.p22}" > checked</c:if>></TD>
					</TR>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.platform3}' /></TD>
						<TD align=left>Yes<input type=radio name="p3" value='true'
							<c:if test="${context.p3}" > checked</c:if>> &nbsp; No<input
							type=radio name="p3" value='false'
							<c:if test="${!context.p3}" > checked</c:if>></TD>
					</TR>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.platform4}' /></TD>
						<TD align=left>Yes<input type=radio name="p4" value='true'
							<c:if test="${context.p4}" > checked</c:if>> &nbsp; No<input
							type=radio name="p4" value='false'
							<c:if test="${!context.p4}" > checked</c:if>></TD>
					</TR>


					<tr style="height: 30;">
						<td align="center" colspan=2><input type="submit"
							value="<c:out value='${context.button_ok}' />"
							style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px #333333">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>

				</table>

				</FORM>




				<FORM method=post
					action="/group/settings<c:out value='${context.postfix}' />?cmd=setMenu">
				<table cellpadding="5" cellspacing="1" width="600" align=center
					style="border: 1px solid #d4d4d2">



					<tr>
						<td colspan=2 align="center" nowrap><font size="2"
							face="verdana"><b><c:out value='${context.head_menu}' /></b></font></td>
					</tr>


					<c:if test="${context.p1}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform1}' /></TD>
							<TD align=left><select name=head_platform1>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.head_platform1}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p11}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.nav1}' /></TD>
							<TD align=left><select name=head_nav1>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.head_nav1}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p2}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform2}' /></TD>
							<TD align=left><select name=head_platform2>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.head_platform2}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p22}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.nav2}' /></TD>
							<TD align=left><select name=head_nav2>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.head_nav2}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p3}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform3}' /></TD>
							<TD align=left><select name=head_platform3>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.head_platform3}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p4}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform4}' /></TD>
							<TD align=left><select name=head_platform4>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.head_platform4}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.my_account}' /></TD>
						<TD align=left><select name=head_platform0>
							<option value="0">NO</option>
							<c:set var="rank" value="0" />
							<c:forEach begin="1" end="7" step="1">
								<c:set var="rank" value="${rank+1 }" />
								<option value="<c:out value='${rank }' />"
									<c:if test="${rank==context.head_platform0}" >selected</c:if>><c:out
									value='${rank }' /></option>
							</c:forEach>

						</select></TD>
					</TR>




					<tr style="height: 30;">
						<td align="center" colspan=2><input type="submit"
							value="<c:out value='${context.button_ok}' />"
							style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px #333333">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>

				</table>

				</FORM>





				<FORM method=post
					action="/group/settings<c:out value='${context.postfix}' />?cmd=setLayout">
				<table cellpadding="5" cellspacing="1" width="600" align=center
					style="border: 1px solid #d4d4d2">



					<tr>
						<td colspan=2 align="center" nowrap><font size="2"
							face="verdana"><b><c:out
							value='${context.home_layout}' /></b></font></td>
					</tr>
					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.text_left}' /></TD>
						<TD align=left><select name=left>
							<option value="0"
								<c:if test="${0==context.left}" >selected</c:if>>NO</option>
							<option value="1"
								<c:if test="${1==context.left}" >selected</c:if>>YES</option>

						</select></TD>
					</TR>

					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.text_main_messages}' /></TD>
						<TD align=left><select name=main_messages>
							<option value="0">NO</option>
							<c:set var="rank" value="0" />
							<c:forEach begin="1" end="7" step="1">
								<c:set var="rank" value="${rank+1 }" />
								<option value="<c:out value='${rank }' />"
									<c:if test="${rank==context.main_messages}" >selected</c:if>><c:out
									value='${rank }' /></option>
							</c:forEach>

						</select></TD>
					</TR>
					<c:if test="${context.p1}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform1}' /></TD>
							<TD align=left><select name=main_platform1>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.main_platform1}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p11}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.nav1}' /></TD>
							<TD align=left><select name=main_nav1>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.main_nav1}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p2}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform2}' /></TD>
							<TD align=left><select name=main_platform2>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.main_platform2}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<c:if test="${context.p22}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.nav2}' /></TD>
							<TD align=left><select name=main_nav2>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.main_nav2}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>

					<c:if test="${context.p4}">
						<tr bgcolor="#ffffff" style="height: 30;">
							<td align="left"><c:out value='${context.platform4}' /></TD>
							<TD align=left><select name=main_platform4>
								<option value="0">NO</option>
								<c:set var="rank" value="0" />
								<c:forEach begin="1" end="7" step="1">
									<c:set var="rank" value="${rank+1 }" />
									<option value="<c:out value='${rank }' />"
										<c:if test="${rank==context.main_platform4}" >selected</c:if>><c:out
										value='${rank }' /></option>
								</c:forEach>

							</select></TD>
						</TR>
					</c:if>
					<tr bgcolor="#ffffff" style="height: 30;">
						<td align="left"><c:out value='${context.text_main_users}' /></TD>
						<TD align=left><select name=main_users>
							<option value="0">NO</option>
							<c:set var="rank" value="0" />
							<c:forEach begin="1" end="7" step="1">
								<c:set var="rank" value="${rank+1 }" />
								<option value="<c:out value='${rank }' />"
									<c:if test="${rank==context.main_users}" >selected</c:if>><c:out
									value='${rank }' /></option>
							</c:forEach>

						</select></TD>
					</TR>





					<tr style="height: 30;">
						<td align="center" colspan=2><input type="submit"
							value="<c:out value='${context.button_ok}' />"
							style="line-height: 18px; align: center;; height: 20px; width: 90px; background: #f6f6f9; border: solid 1px #333333">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
					</tr>

				</table>

				</FORM>





				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td><c:import url="/footer.jsp" /></td>
	</tr>
	<c:if test="${not empty msg}">
		<script>alert('${msg }')</script>
	</c:if>
</table>
</body>
</html>


